<?php
namespace sdphp\lib\Pack;
/**
 * taskPHP
 * @author     码农<8044023@qq.com>
 * @copyright  taskPHP
 * @license    https://git.oschina.net/cqcqphper/taskPHP
 */
interface IPack
{
    function encode($buffer);

    function decode($buffer);

    function pack($data, $topic = null);

    function unPack($data);

    function getProbufSet();

    function errorHandle($e, $fd);
}